package com.springboot.springautowired.javaDesignModel.strategy.issue;

import com.springboot.springautowired.javaDesignModel.strategy.solution.PayCode;
import org.springframework.stereotype.Service;

/**
 * @author mac
 * @date 2021/9/18 4:40 下午
 */
@PayCode(value = "weixin", name = "微信支付")
@Service
public class WeixinPay implements IPay {
    @Override
    public boolean support(String code) {
        return "weixin".equals(code);
    }

    @Override
    public void pay() {
        System.out.println("===发起微信支付===");
    }
}
